import Vue from 'vue';
import VueRouter from 'vue-router';
import axios from '@/util/axios';
import VueAxios from 'vue-axios';
import VueClipboard from 'vue-clipboard2'

Vue.use(VueClipboard)

import 'normalize.css';
import Element from 'element-ui';


import Trade from '@/component/trade/index.vue';
import { router } from "@/router/trade";
import '@/util/filter'

import '@/assets/scss/base.scss';
import { IeRouter } from '@/util/polyfill';

Vue.use(Element);
Vue.use(VueRouter);
Vue.use(VueAxios, axios);
// 设置 Vue.prototype.$http 为 axios 的别名：
// Vue.prototype.$http = axios

import { store } from '@/store/trade'
store.commit('setUserForInit')
// import { userStore } from '@/store/user'
// store.dispatch('getPolicy')



// Vue.prototype.testXingye = 'http://ufm-test.cibfintech.com/bizmgr/system/login/246d06008c4f4e14afd4d204bb507e5e/'

export const vue: Vue = new Vue({
    el: '#app',
    router,
    store,
    render: function (createElement) {
        IeRouter()
        return createElement(Trade)
    }
})